package com.ai.mapper.alarm;

import com.ai.entity.alarm.AlarmAdditionalParameter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Author：xiaosheng
 * @Date：2024/5/30 9:42
 */
public interface AlarmAdditionalParameterMapper extends BaseMapper<AlarmAdditionalParameter> {


    @Select("select id,\n" +
            "       record_alarm_id,\n" +
            "       telegram_received_content,\n" +
            "       telegram_send_date,\n" +
            "       strip_no,\n" +
            "       steel_thickness,\n" +
            "       steel_width,\n" +
            "       steel_diameter\n" +
            "from " +
            "alarm_additional_parameter \n" +
            " where record_alarm_id = #{id}")
    AlarmAdditionalParameter selectByRecordAlarmId(Integer id);
}
